package com.myblog.firstjavaproject;

public class Rectangle {
    public int length;
    public int width;
    Rectangle(int length,int width) {
        this.length = length;
        this.width = width;
    }
    public int zc(int length,int width) {
        return (length + width) * 2;
    }
    public int mj() {
        return length * width;
    }
    public int zcc(Rectangle r) {
        return Math.abs(this.zc(this.length,this.width) - r.zc(r.width,r.length));
    }
}


